home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / wpasupplicant.postinst < prev    next >
Text File  |  2009-09-19  |  1KB  |  42 lines

  1. #!/bin/sh
  2. # This script can be called in the following ways:
  3. #
  4. # After the package was installed:
  5. #       <postinst> configure <old-version>
  6. #
  7. #
  8. # If prerm fails during upgrade or fails on failed upgrade:
  9. #       <old-postinst> abort-upgrade <new-version>
  10. #
  11. # If prerm fails during deconfiguration of a package:
  12. #       <postinst> abort-deconfigure in-favour <new-package> <version>
  13. #                  removing <old-package> <version>
  14. #
  15. # If prerm fails during replacement due to conflict:
  16. #       <postinst> abort-remove in-favour <new-package> <version>
  17.  
  18. set -e
  19.  
  20. case "$1" in
  21.     configure)
  22.         # Add the netdev group unless it's already there
  23.         if ! getent group netdev >/dev/null; then
  24.             addgroup --quiet --system netdev || true
  25.         fi
  26.         ;;
  27.     abort-upgrade|abort-deconfigure|abort-remove)
  28.         ;;
  29.     *)
  30.         echo "$0 called with unknown argument \`$1'" 1>&2
  31.         exit 1
  32.         ;;
  33. esac
  34.  
  35. # Automatically added by dh_installinit
  36. if [ -x "/etc/init.d/wpa-ifupdown" ]; then
  37.     update-rc.d wpa-ifupdown start 15 0 6 . >/dev/null || exit $?
  38. fi
  39. # End automatically added section
  40.  
  41. exit 0
  42.